// 引入action的类型
import { ActionType } from "../reducer/todo";

// 返回 根据id来删除元素的 action
export const todoDelByIdAction = (id: number): ActionType => ({
  type: "todo/delById",
  payload: id,
});

// 清理已完成 action
export const todoClearAction = (): ActionType => ({
  type: "todo/clearDone",
});
